MODULE_big = pg_dirtyread
OBJS = pg_dirtyread.o dirtyread_tupconvert.o

EXTENSION = pg_dirtyread
DATA = pg_dirtyread--1.0.sql \
	   pg_dirtyread--1.0--2.sql pg_dirtyread--2.sql

REGRESS = extension dirtyread oid

# PG_CONFIG = pg_config
# PGXS := $(shell $(PG_CONFIG) --pgxs)
# include $(PGXS)

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pg_dirtyread
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

override CPPFLAGS :=$(filter-out -fPIE,  $(CPPFLAGS)) -fPIC

pg_dirtyread.o dirtyread_tupconvert.o: dirtyread_tupconvert.h
